﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes.MiniQuest {
    import flash.events.*;
    import Classes.*;

    public class PendingFranchiseMQ extends MiniQuest {

        public static const QUEST_NAME:String = "pendingFranchiseMQ";

        private var m_hasBeenShown:Boolean;

        public function PendingFranchiseMQ(){
            super(QUEST_NAME);
            this.m_hasBeenShown = false;
            m_recurrenceTime = 5;
        }
        public function get isQuestNeeded():Boolean{
            var _local1:Boolean;
            if (LotSite.shouldShowFranchiseMQIcon()){
                _local1 = true;
            };
            return (_local1);
        }
        override protected function initQuest():void{
            if (((m_assetsLoaded) && (!(m_questActive)))){
                this.m_hasBeenShown = true;
            };
            super.initQuest();
        }
        override protected function onIconClicked(_arg1:MouseEvent):void{
            super.onIconClicked(_arg1);
            if (LotSite.shouldShowFranchiseMQIcon()){
                m_recurrenceTime = 3600;
            } else {
                m_recurrenceTime = 0;
            };
            Global.world.citySim.miniQuestManager.resetPendingFranchiseLog();
            if (!Global.isVisiting()){
                LotSite.onFranchisePendingClick();
            };
        }

    }
}//package Classes.MiniQuest 
